#ifndef _CLIENT_SOCKET_HPP_
#define _CLIENT_SOCKET_HPP_

#include "Socket.hpp"


/*
interresting stuff (no time for that):

int SendFile();

*/


class ClientSocket
{
public:
	ClientSocket(void);
	~ClientSocket(void);
	int ConnectToServer(char * hostname, int port); 
	int ConnectToServer(int ip, int port); 
	int Disconnect();
	int sendData(char * data);
	char * receiveData();
	

	//accessor
	void SetPort(int port);
	void SetHostname(char * hostname);
	void SetIp(int ip);
	int GetPort();
	char * GetHostName();
	int GetIp();

private:
	Socket socket;
	Thread * threadList;

};

#endif